<div class="mb20 invest-right-top clearfix">
	  <b class="invest-rightside-h3-left"></b>
	  <h3 class="invest-rightside-h3 float_right">我要投资</h3>
	  {{!S 判断用户类型是否为非借款用户}}
      {{#inequality userType 2}}
      
	  <div class="amount-form-box pt10  pl30 pr30 bdr1-e6e6e6 bg-white float_right">	  		
	    	<p class="amount-money">可用余额：<b class="c315A8B">{{useMoney}}</b>元</p>
	    	{{#with project}}
	    	<p>可投份数：<span id="canNum"><b class="c315A8B">{{surplusCopie totalCopies yesCopies}}</b></span>份</p>
	   		<form action="/additional/flow/buyFlowProject.html" method="post" class="amount-form" id="flowInvestForm">
	   				{{!-- S 判断标是否投满--}}
		      		{{#inequality totalCopies yesCopies}}
			      		<div class="form-group">
		                    <em id="numSubtract" class="iconfont" style="cursor:pointer">-</em>
		                    <input type="text" value="{{startCopies}}" name="yesCopies" id="yesCopies" maxlength="10" autocomplete="off" onKeyUp="value=value.replace(/\D/g,'')" style="width:50px;  border-radius: 0;text-align:center;" />
		                    <em id="numAdd" class="iconfont" style="border-radius:0 4px 4px 0;cursor:pointer">+</em>
		                </div>
			         	<div class="form-group">
		                    <em class="iconfont">&#xe617;</em>
		                    <input type="text" id="uuid" name="uuid" value="{{uuid}}" style="display:none"/>
			                <input type="password" class="payPwd"  name="payPwd" size="11" placeholder="交易密码" autocomplete="off"/>
			                <input type="text" id="flowtenderToken" name="flowtenderToken" value="{{../../flowtenderToken}}" style="display:none"/>
			               	<div class="form_group_tip form_trade_tip hide"></div>
			            </div>
			            <div class="form-action">
				        	<input type="submit" value="立即投资" class="green-btn sub-invest-btn" id="flowInvest">
				      	</div>
			      	{{else}}
				      	 <div class="amount-form-box borrow_full pt10  bg-white float_right">
		                    
		                     <p class="disabled_btn">投资已结束</p>
		                     <p>欢迎进入<a href="/invest/index.html">投资列表</a>，投资其他借款。</p>
		                  </div>	
			      	{{/inequality}}     
			      	{{!-- E 判断标是否投满--}}   
	    	</form>    	
	    	{{/with}}
	</div>
	{{else}}
    <div class="amount-form-box borrow_user_tip pt10 pl30 pr30">
        <dl>
          <dt>对不起！</dt>
          <dd>您的账户是借款人，不能进行投资。</dd>
        </dl>
        <a class="login_account" href="/member/main.html">进入账户中心</a>
    </div>
    <input type="hidden" id="bid_id" value="{{../borrow/id}}"/>
    {{/inequality}}
    {{!E判断用户类型是否为非借款用户}}
</div>